//
//  LGTopic.h
//  lgdw
//
//  Created by mac on 16/1/16.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LGTopic : NSObject


/*
 "title": "\u7535\u7ade\u5982\u6709\u795e,
 "id": 186,
 "image": "http:\/\/imgs.duwu.me\/duwu\/undefined\/1452766707528.jpg",
 "description": "\u949b,
 "member_num": 150,//申请人数
 "member_max": 7, 数量
 "create_time": "1452767159",
 "company_id": 0,
 "company_name": "",
 "enroll_time": 1452768600,
 "enroll_end_time": 1453650900,
 "is_return": 0,
 "share_url": "http:\/\/m.duwu.me\/activity\/186.html?s_uid=YmI0NmF5bVFGV1FKJTJCN3pVY0R2ZGdNdWFLWVJWdXhKZjZwcGl2QUNOSTZBbw==",
 "like_num": 4,
 "like_status": 0,
 "status": 1, // 是否进行中
 "user_status": 3
 
 */
/** 大图 */
@property (nonatomic , strong) NSString *image;
/** 总数量 */
@property (nonatomic , assign) NSNumber *member_max;
/** 申请人数 */
@property (nonatomic , assign) NSNumber *member_num;
/** 标题 */
@property (nonatomic , copy) NSString *title;
/** 状态判断 */
@property (nonatomic , assign) int status;
/** 详细页面 */
@property (nonatomic , copy) NSString *share_url;

// 字典转模型
+ (instancetype)topicWithDict:(NSDictionary *)dict;

///发送异步请求，获取数据，字典转模型
+ (void)topicWithSuccessBlock:(void(^)(NSArray *array))successBlock errorBlock:(void(^)(NSError *error))errorBlock;
@end
